﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TR_TrainingCoursesAddTrainee.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.TR_TrainingCoursesAddTrainee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>เพิ่มรายชื่อผู้มีสิทธิ์เข้ารับการอบรม</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
        .style1
        {
            width: 14%;
        }
        .style2
        {
            width: 233px;
        }
        .style3
        {
            width: 169px;
        }
        .style5
        {
            width: 195px;
        }
    </style>
</head>
<%--<script type="text/javascript">  
           function openProjectDetails(id)
            {
                radopen("TR_TrainingCurriculumsDtls.aspx?id=" + id, "ProjectDtls");
                return false;
            }
  </script>--%>
  
     <script type="text/javascript">   

    
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
          
    </script>
    
<body>
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    
    <div> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>    

    <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>
    <telerik:RadTabStrip 
        ID="RadTabStrip1" 
        runat="server" 
        MultiPageID="RadMultiPage1"
        SelectedIndex="1" 
        CausesValidation="False" 
        Skin="Office2007" Width="1002px">
        <Tabs>
            <telerik:RadTab Text="ข้อมูลหลัก" Width="200px" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab Text="Quota  หน่วยงาน" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="รายชื่อวิทยากร" Width="200px" >
            </telerik:RadTab>
            <telerik:RadTab Text="แจ้งเวียน" Width="200px">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>

  <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
  
  <telerik:RadPageView ID="RadPageView4" runat="server">    
    &nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;
      <asp:Panel ID="Panel5" runat="server">
        <table cellpadding="0" cellspacing="0" width="1000">
          <tr>
          <td colspan="3">
            <div class="moduleDivSlim1000x450">
            <div class="moduleDivBottom1000">
                <table align="center" width="980px">
                <tr>
                    <td align="left" class="tableHeader">
                        ข้อมูลหลัก
                    </td>
                </tr>
                </table>        
                <table align="center" style="width: 962px">
                    <tr>
                        <td>                             
                            <asp:Panel ID="Panel7" runat="server" Height="380px" ScrollBars="Auto" 
                                Visible="true" Width="969px">
                                <ul class="formList" style="width: 900px; height: 314px;">
                                <li>
                                    <table align="left"> 
                                        <tr>
                                           <td align="right" class="style2" valign="top">
                                                <font face="Tahoma">หลักสูตรการอบรม</font> :
                                            </td>
                                            <td class="style3">
                                                <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr> 
                                    </table>
                                </li>                                
                                <li>
                                    <table>
                                                            
                                    <tr>
                                   <td align="right" class="style2" valign="top">
                                        <font face="Tahoma">เปิดรับสมัครตั้งแต่วันที่</font> :</td>
                                    
                                    <td class="style3">
                                        <asp:Label ID="Label3" runat="server" Text=""></asp:Label></td>
                                        
                                    <td>
                                    <font face="Tahoma">ถึง</font></td> 
                                    <td>
                                                <asp:Label ID="Label4" runat="server" Text=""></asp:Label></td>
                                </tr>
                                </table>
                                </li>
                                <li>
                                    <table>
                                    <tr>
                                        <td align="right" class="style2" valign="top">
                                            <font face="Tahoma">อบรมตั้งแต่วันที่</font> :</td>
                                        
                                        <td class="style3">
                                            <asp:Label ID="Label5" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td>
                                            <font face="Tahoma">ถึง</font>
                                        </td> 
                                        <td>
                                             <asp:Label ID="Label6" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                </li>                                
                                <li>
                                    <table>
                                    <tr>
                                    <td align="right" class="style2" valign="top">
                                        <font face="Tahoma">คะแนนเต็ม</font> :
                                    </td>                                    
                                    <td class="style3">
                                        <asp:Label ID="Label7" runat="server" Text=""></asp:Label>
                                    </td>
                                    </tr>
                                    </table>
                                </li>
                                <li>
                                    <table>
                                    <tr>
                                       <td align="right" class="style2" valign="top">
                                            <font face="Tahoma">คะแนนผ่านเกณฑ์</font> :</td>
                                        
                                        <td class="style3">
                                        <asp:Label ID="Label8" runat="server" Text=""></asp:Label></td>
                                    </tr>
                                    </table>
                                </li>                                
                                <li>
                                    <table>
                                    <tr>
                                    <td align="right" class="style2" valign="top">
                                        <font face="Tahoma">จำนวนผู้เข้ารับการอบรมที่รองรับได้สูงสุด</font> :</td>
                                    
                                    <td class="style3">
                                        <asp:Label ID="Label9" runat="server" Text=""></asp:Label>&#160;&#160;คน</td>
                                    </tr>
                                    </table>
                                </li>
                                <li>
                                    <table>
                                        <tr>
                                           <td align="right" class="style2" valign="top">
                                                <font face="Tahoma">จำนวนคนในQuota</font> :</td>
                                            
                                            <td class="style3">
                                                <asp:Label ID="Label10" runat="server" Text=""></asp:Label>&#160;&#160;คน
                                            </td>
                                       </tr>
                                    </table>
                                </li>
                                <li>
                                    <table>
                                    <tr>
                                       <td align="right" class="style2" valign="top">
                                            <font face="Tahoma">จำนวนผู้สมัคร</font> :
                                        </td>
                                        <td class="style3">
                                            <asp:Label ID="Label11" runat="server" Text=""></asp:Label>&#160;&#160;คน
                                        </td>
                                    </tr>
                                        
                                    </table>
                                </li>
                                <li>
                                    <table>
                                    <tr>
                                       <td align="right" class="style2" valign="top">
                                            <font face="Tahoma">จำนวนผู้มีสิทธิ์เข้ารับการอบรม</font> :
                                        </td>
                                        
                                        <td class="style3">
                                            <asp:Label ID="Label12" runat="server" Text=""></asp:Label>&#160;&#160;คน
                                        </td>
                                    </tr>
                                    </table>
                                </li>
                                <li>
                                    <table>
                                    <tr>
                                        <td align="right" class="style2" valign="top">
                                            <font face="Tahoma">ค่าใช้จ่ายประมาณในการอบรม</font> :
                                        </td>
                                        <td class="style3">
                                            <asp:Label ID="Label13" runat="server" Text=""></asp:Label>&#160;&#160;บาท
                                        </td>
                                    </tr>
                                    </table>
                                </li>
                                <li>
                                    <table>
                                        <tr>
                                            <td align="right" class="style2" valign="top">
                                                <font face="Tahoma">สถานที่ของการอบรม</font> :
                                            </td>
                                            <td class="style3">
                                                <asp:Label ID="Label14" runat="server" Text=""></asp:Label>
                                            </td>
                                       </tr>
                                    </table>
                                </li> 
                                </ul> 
                             </asp:Panel>
                        </td>    
                    </tr>            
               </table>
            </div>
            </div>            
          </td>                                             
          </tr>         
         </table>
      </asp:Panel>
      
&nbsp;&nbsp;&nbsp;
    </telerik:RadPageView>
                                   
    <telerik:RadPageView ID="RadPageView1" runat="server">
    
        
&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;
        <asp:Panel ID="Panel6" runat="server">
    <table cellpadding="0" cellspacing="0" width="1000">
          <tr>
          <td colspan="3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
        <table align="center" width="980px">
        <tr>
            <td align="left" class="tableHeader">
                รายชื่อผู้สมัครขอเข้ารับการอบรม</td>
        </tr>
        </table>        
        <table align="center" style="width: 962px">
            <tr>
                <td>                             
                    <asp:Panel ID="PanelGrid" runat="server" Height="380px" ScrollBars="Auto" 
                        Visible="true" Width="969px">
                        <telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticDeletes="True" 
                            AllowFilteringByColumn="True" AllowMultiRowEdit="True" 
                            AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                            AutoGenerateColumns="False" EnableAJAX="True" EnableAJAXLoadingTemplate="True" 
                            GridLines="None" Height="360px" OnItemCommand="RadGrid2_ItemCommand" 
                            Skin="Outlook" Width="960px">
                            <mastertableview allowmulticolumnsorting="True" cellspacing="-1" 
                            clientdatakeynames="scholar_type_seq" commanditemdisplay="Top" 
                            datakeynames="scholar_type_seq" nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                                <commanditemtemplate>
                                    <table width="99%">
                                        <tr>
                                            <td align="left">
                                                <asp:LinkButton ID="AddInstitute" runat="server" CommandName="AddData" 
                                                    Visible="true">
                                                <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                    style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                                </asp:LinkButton>
                                            </td>
                                            <td align="right">
                                            </td>
                                        </tr>
                                    </table>
                                </commanditemtemplate>
                                <Columns>
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                        ShowFilterIcon="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdEdit" runat="server" CommandName="DataEdit" 
                                                    ImageUrl="../Images/Buttons/Edit.gif" 
                                                    OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');" 
                                                    ToolTip="แก้ไขรายการ" width="20px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                        ShowFilterIcon="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdDelete" runat="server" CommandName="Delete" 
                                                    ImageUrl="../Images/Buttons/Delete.gif" 
                                                    OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');" 
                                                    ToolTip="ลบรายการ" width="20px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="closed" FilterControlWidth="100%" 
                                        HeaderText="สถานะ" ShowFilterIcon="false" UniqueName="closed">
                                        <HeaderStyle HorizontalAlign="Center" Width="50px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="ref_no" FilterControlWidth="100%" 
                                        HeaderText="เลขที่อ้างอิง" ShowFilterIcon="false" UniqueName="ref_no">
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_course_descr" 
                                        FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                        HeaderText="รายละเอียดการอบรม" ShowFilterIcon="false" Visible="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdDetail" runat="server" CommandName="CouresDetail" 
                                                    ImageUrl="../Images/Buttons/Magnifier.gif" ToolTip="รายละเอียดการอบรม" 
                                                    width="50px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_type_descr" 
                                        FilterControlWidth="100%" HeaderText="หลักสูตรการอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_type_descr">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_group_descr" 
                                        FilterControlWidth="100%" HeaderText="กลุ่มการอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_group_descr" Visible="false">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_ins_descr" 
                                        FilterControlWidth="100%" HeaderText="สถานที่จัดอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_ins_descr">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="date_training_start" 
                                        FilterControlWidth="100%" HeaderText="วันที่เริ่มอบรม" ShowFilterIcon="false" 
                                        UniqueName="date_training_start">
                                        <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="date_training_end" 
                                        FilterControlWidth="100%" HeaderText="อบรมถึงวันที่" ShowFilterIcon="false" 
                                        UniqueName="date_training_end">
                                        <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="50px" 
                                        HeaderText="รายละเอียด" ShowFilterIcon="false" Visible="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:LinkButton ID="cmdDetail" runat="server" CommandName="CouresDetail" 
                                                    ToolTip="รายละเอียดการอบรม" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                        
                                <PagerStyle AlwaysVisible="true" FirstPageToolTip="กลับหน้าแรก" 
                            LastPageToolTip="ไปหน้าสุดท้าย" Mode="NumericPages" 
                            NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                            PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                            </mastertableview>
                            <clientsettings>
                                <selecting allowrowselect="true" />
                                <scrolling allowscroll="true" usestaticheaders="True" />
                            </clientsettings>
                        </telerik:RadGrid>
                    </asp:Panel>                                
                </td>
            </tr>
        </table>
        <%--<table width ="980px" >
        <tr align="center">
        <td >
        <asp:Panel ID="PanelGrid" 
            runat="server" 
            Width="980px" 
            Height="350px" ScrollBars="Auto" >
            
            
                <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="99%" 
                    onitemdatabound="RadGrid2_ItemDataBound">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="Sequence" CommandItemDisplay="Top" DataKeyNames="Sequence" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid2.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>">
                                        <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มรายการใหม่</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                <ItemStyle Width="15px" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                <ItemStyle HorizontalAlign="Center" Width="10px" />
                            </telerik:GridButtonColumn>
                            
                            
                            
                            <telerik:GridBoundColumn DataField="training_cur_descr" HeaderText="ชื่อ-สกุล" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="training_cur_descr"
                                >
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="" HeaderText="สังกัด/ตำแหน่ง/ระดับ" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="Quota"
                                >
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                           
                            
                            
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/TR_TrainingAddTrainee.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>

                </td>
                </tr>
                </table>--%>
                </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Panel>
        
&nbsp;
  </telerik:RadPageView>
  
    <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">
        
&nbsp;&nbsp;&nbsp;
        <asp:Panel ID="Panel1" runat="server">
    <table cellpadding="0" cellspacing="0" width="1000">
          <tr>
          <td colspan="3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
        <table align="center" width="980px">
        <tr>
            <td align="left" class="tableHeader">
                รายชื่อผู้มีสิทธิ์</td>
        </tr>
        </table>
        <table width="980px">
        <tr>
        <td>
        <asp:Panel ID="Panel2" runat="server" Height="331px" ScrollBars="Auto" 
                Width="980px">
                <%--<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid1_ItemCommand" Skin="Outlook" Width="99%" 
                    onitemdatabound="RadGrid1_ItemDataBound">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="Sequence" CommandItemDisplay="Top" DataKeyNames="Sequence" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid1.MasterTableView.IsItemInserted && RadGrid1.EditIndexes.Count <= 0 %>">
                                        <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มรายการใหม่</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                <ItemStyle Width="15px" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                <ItemStyle HorizontalAlign="Center" Width="10px" />
                            </telerik:GridButtonColumn>
                            
                            
                            
                        <telerik:GridBoundColumn DataField="trainer_seq" HeaderText="ชื่่อ-สกุล" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="trainer_seq">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                            
                           <telerik:GridBoundColumn DataField="full_name" HeaderText="สังกัด/ตำแหน่ง/ระดับ" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="full_name">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="full_name" HeaderText="ผลการอบรม" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>          
                            
                        <telerik:GridBoundColumn DataField="full_name" HeaderText="คะแนนที่ได้" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="full_name" HeaderText="จำนวนชั่วโมง" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/TR_TrainingAddScore.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>--%><telerik:RadGrid ID="RadGrid1" runat="server" 
                AllowAutomaticDeletes="True" AllowFilteringByColumn="True" 
                AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                EnableAJAXLoadingTemplate="True" GridLines="None" Height="328px" 
                OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="960px">
                    <mastertableview allowmulticolumnsorting="True" cellspacing="-1" 
                clientdatakeynames="scholar_type_seq" commanditemdisplay="Top" 
                datakeynames="scholar_type_seq" nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                        <commanditemtemplate>
                            <table width="99%">
                                <tr>
                                    <td align="left">
                                        <asp:LinkButton ID="AddInstitute0" runat="server" CommandName="AddData" 
                                            Visible="true">
                                        <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                        </asp:LinkButton>
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </commanditemtemplate>
                        <Columns>
                            <telerik:GridTemplateColumn AllowFiltering="false" 
                                HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                ShowFilterIcon="false">
                                <ItemTemplate>
                                    <table>
                                        <asp:ImageButton ID="cmdEdit0" runat="server" CommandName="DataEdit" 
                                            ImageUrl="../Images/Buttons/Edit.gif" 
                                            OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');" 
                                            ToolTip="แก้ไขรายการ" width="20px" />
                                    </table>
                                </ItemTemplate>
                            
                                <HeaderStyle HorizontalAlign="Center" Width="20px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false" 
                                HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                ShowFilterIcon="false">
                                <ItemTemplate>
                                    <table>
                                        <asp:ImageButton ID="cmdDelete0" runat="server" CommandName="Delete" 
                                            ImageUrl="../Images/Buttons/Delete.gif" 
                                            OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');" 
                                            ToolTip="ลบรายการ" width="20px" />
                                    </table>
                                </ItemTemplate>
                            
                                <HeaderStyle HorizontalAlign="Center" Width="20px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="trainer_seq" 
                                FilterControlWidth="100%" HeaderText="ชื่่อ-สกุล" ShowFilterIcon="false" 
                                UniqueName="trainer_seq">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="full_name" 
                                FilterControlWidth="100%" HeaderText="สังกัด/ตำแหน่ง/ระดับ" 
                                ShowFilterIcon="false" UniqueName="full_name">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="full_name" 
                                FilterControlWidth="100%" HeaderText="ผลการอบรม" ShowFilterIcon="false" 
                                UniqueName="">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="full_name" 
                                FilterControlWidth="100%" HeaderText="คะแนนที่ได้" ShowFilterIcon="false" 
                                UniqueName="">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" DataField="full_name" 
                                FilterControlWidth="100%" HeaderText="จำนวนชั่วโมง" ShowFilterIcon="false" 
                                UniqueName="">
                                <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </telerik:GridBoundColumn>
                        </Columns>
            
                        <PagerStyle AlwaysVisible="true" FirstPageToolTip="กลับหน้าแรก" 
                LastPageToolTip="ไปหน้าสุดท้าย" Mode="NumericPages" 
                NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                    </mastertableview>
                    <clientsettings>
                        <selecting allowrowselect="true" />
                        <scrolling allowscroll="true" usestaticheaders="True" />
                    </clientsettings>
                </telerik:RadGrid>
            </asp:Panel>

        </td>
        </tr>
        </table>
        </div>
</div>
</td>
</tr>
</table>
</asp:Panel>
        
</telerik:RadPageView>

    <telerik:RadPageView ID="RadPageView3" runat="server" Width="100%">
        
&nbsp;&nbsp;&nbsp;
        <asp:Panel ID="Panel3" runat="server">
    <table cellpadding="0" cellspacing="0" width="1000">
      <tr>
      <td colspan="3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
            <table align="center" width="980px">
            <tr>
                <td align="left" class="tableHeader">กรองข้อมูลก่อนการแจ้งเวียน</td>
            </tr>
            </table>
            <table align="center" style="width: 975px">
            <tr>
                <td width="12%">ประเภทบุคลากร :</td>
                <td align="left" class="style1">&#160;
                    <telerik:RadComboBox ID="ddlEmployeeType" runat="server" AllowCustomText="true" 
                        AutoPostBack="True" CausesValidation="false" DataTextField="Name" 
                        DataValueField="Sequence" EmptyMessage="... เลือกประเภทบุคลากร ..." 
                        Filter="Contains" OnClientTextChange="onTextChange" 
                        onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" Width="250px">
                    </telerik:RadComboBox>
                </td>
                <td width="10%">
                    บุคลกรระดับตั้งแต่</td>
                <td align="left" class="style1">
                   <telerik:RadComboBox ID="RadComboBox3" runat="server" AllowCustomText="true" 
                        AutoPostBack="True" CausesValidation="false" DataTextField="Name" 
                        DataValueField="Sequence" EmptyMessage="... ทั้งหมด..." Filter="Contains" 
                        Height="16px" OnClientTextChange="onTextChange" 
                        onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" Width="104px"></telerik:RadComboBox>
                </td>
                <td align="left" width="5%">ถึง </td>
                <td align="left" class="style5">
                   <telerik:RadComboBox ID="RadComboBox4" runat="server" AllowCustomText="true" 
                        AutoPostBack="True" CausesValidation="false" DataTextField="Name" 
                        DataValueField="Sequence" EmptyMessage="... ทั้งหมด..." Filter="Contains" 
                        Height="16px" OnClientTextChange="onTextChange" 
                        onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" Width="165px"></telerik:RadComboBox>
                </td>
                
                <td align="center" width="15%">
                    <asp:Button ID="Button1" runat="server" onclick="btnSearch_Click" Text="ค้นหา" 
                        Width="80px" />
                </td>
            </tr>
            </table>
            
    <table width="980px">
    <tr>
        <td>
            <asp:Panel ID="Panel4" runat="server" Height="326px" ScrollBars="Auto" 
                Width="980px">
            <telerik:RadGrid ID="RadGrid3" runat="server" AllowAutomaticDeletes="True" 
                    AllowFilteringByColumn="True" AllowMultiRowEdit="True" 
                    AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                    AutoGenerateColumns="False" EnableAJAX="True" EnableAJAXLoadingTemplate="True" 
                    GridLines="None" Height="304px" OnItemCommand="RadGrid2_ItemCommand" 
                    Skin="Outlook" Width="960px">
                            <mastertableview allowmulticolumnsorting="True" cellspacing="-1" 
                    clientdatakeynames="scholar_type_seq" commanditemdisplay="Top" 
                    datakeynames="scholar_type_seq" nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                                <commanditemtemplate>
                                    <table width="99%">
                                        <tr>
                                            <td align="left">
                                                <asp:LinkButton ID="AddInstitute" runat="server" CommandName="AddData" 
                                                    Visible="true">
                                                <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                    style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                                </asp:LinkButton>
                                            </td>
                                            <td align="right">
                                            </td>
                                        </tr>
                                    </table>
                                </commanditemtemplate>
                                <Columns>
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                        ShowFilterIcon="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdEdit" runat="server" CommandName="DataEdit" 
                                                    ImageUrl="../Images/Buttons/Edit.gif" 
                                                    OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');" 
                                                    ToolTip="แก้ไขรายการ" width="20px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                        ShowFilterIcon="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdDelete" runat="server" CommandName="Delete" 
                                                    ImageUrl="../Images/Buttons/Delete.gif" 
                                                    OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');" 
                                                    ToolTip="ลบรายการ" width="20px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="closed" FilterControlWidth="100%" 
                                        HeaderText="สถานะ" ShowFilterIcon="false" UniqueName="closed">
                                        <HeaderStyle HorizontalAlign="Center" Width="50px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="ref_no" FilterControlWidth="100%" 
                                        HeaderText="เลขที่อ้างอิง" ShowFilterIcon="false" UniqueName="ref_no">
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_course_descr" 
                                        FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                        HeaderText="รายละเอียดการอบรม" ShowFilterIcon="false" Visible="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:ImageButton ID="cmdDetail" runat="server" CommandName="CouresDetail" 
                                                    ImageUrl="../Images/Buttons/Magnifier.gif" ToolTip="รายละเอียดการอบรม" 
                                                    width="50px" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_type_descr" 
                                        FilterControlWidth="100%" HeaderText="หลักสูตรการอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_type_descr">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_group_descr" 
                                        FilterControlWidth="100%" HeaderText="กลุ่มการอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_group_descr" Visible="false">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="training_ins_descr" 
                                        FilterControlWidth="100%" HeaderText="สถานที่จัดอบรม" ShowFilterIcon="false" 
                                        UniqueName="training_ins_descr">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="date_training_start" 
                                        FilterControlWidth="100%" HeaderText="วันที่เริ่มอบรม" ShowFilterIcon="false" 
                                        UniqueName="date_training_start">
                                        <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" DataField="date_training_end" 
                                        FilterControlWidth="100%" HeaderText="อบรมถึงวันที่" ShowFilterIcon="false" 
                                        UniqueName="date_training_end">
                                        <HeaderStyle HorizontalAlign="Center" Width="80px" Wrap="False" />
                                    </telerik:GridBoundColumn>
                                    
                                    <telerik:GridTemplateColumn AllowFiltering="false" 
                                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="50px" 
                                        HeaderText="รายละเอียด" ShowFilterIcon="false" Visible="false">
                                        <ItemTemplate>
                                            <table>
                                                <asp:LinkButton ID="cmdDetail" runat="server" CommandName="CouresDetail" 
                                                    ToolTip="รายละเอียดการอบรม" />
                                            </table>
                                        </ItemTemplate>
                                    
                                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                
                                <PagerStyle AlwaysVisible="true" FirstPageToolTip="กลับหน้าแรก" 
                    LastPageToolTip="ไปหน้าสุดท้าย" Mode="NumericPages" 
                    NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                    PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                            </mastertableview>
                            <clientsettings>
                                <selecting allowrowselect="true" />
                                <scrolling allowscroll="true" usestaticheaders="True" />
                            </clientsettings>
                        </telerik:RadGrid>
            <%--<telerik:RadGrid ID="RadGrid3" runat="server" 
                    AllowFilteringByColumn="True" 
                    AllowMultiRowSelection="True" 
                    AllowPaging="false"
                    AllowSorting="True" 
                    AutoGenerateColumns="False" 
                    EnableAJAX="True" 
                    GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" 
                    Skin="Outlook" 
                    Width="978" 
                    onitemdatabound="RadGrid2_ItemDataBound">
                    
                    
                    <MasterTableView AllowMultiColumnSorting="True" 
                        ClientDataKeyNames="pm_job_site_seq" DataKeyNames="pm_job_site_seq" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                    <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                        
                        <Columns>
                        
                        
                        <telerik:GridTemplateColumn 
                                ShowFilterIcon="false" 
                                AllowFiltering="false" ><HeaderTemplate><asp:CheckBox ID="cb1" runat="server" 
                                        AutoPostBack="true" 
                                        OnCheckedChanged="cb1_Checked" /></HeaderTemplate><ItemTemplate><asp:CheckBox ID="cb2" runat="server" /></ItemTemplate><HeaderStyle HorizontalAlign="Center" Width="20" /></telerik:GridTemplateColumn><telerik:GridBoundColumn DataField="job_site_name" HeaderText="สำนัก/กอง" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="job_site_name"><HeaderStyle Wrap="False" HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="mng_name" HeaderText="แบบทดสอบการบริหารค่าตอบแทน" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="mng_name"><HeaderStyle Wrap="False" HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="amount" HeaderText="งบประมาณ" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="amount"
                                DataFormatString="{0:#,##0.00}"><HeaderStyle Wrap="False" HorizontalAlign="Right" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="amount" HeaderText="งบประมาณขาด/เกิน" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="amount2"
                                DataFormatString="{0:#,##0.00}"><HeaderStyle Wrap="False" HorizontalAlign="Right" /></telerik:GridBoundColumn>
                                
                 </Columns>
                 
                  <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                 </MasterTableView>
                 
                 <ClientSettings EnableRowHoverStyle="true" >
                    <Selecting AllowRowSelect="True" />
                    <Selecting AllowRowSelect="True"  />
                </ClientSettings>
                
                
                 
                 </telerik:RadGrid>--%>
                <%--<telerik:RadGrid ID="RadGrid3" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid3_ItemCommand" Skin="Outlook" Width="99%" 
                    onitemdatabound="RadGrid3_ItemDataBound">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="Sequence" CommandItemDisplay="Top" DataKeyNames="Sequence" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid3.MasterTableView.IsItemInserted && RadGrid3.EditIndexes.Count <= 0 %>">
                                        <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มรายการใหม่</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                <ItemStyle Width="15px" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                <ItemStyle HorizontalAlign="Center" Width="10px" />
                            </telerik:GridButtonColumn>
                            
                            
                            
                            <telerik:GridBoundColumn DataField="compare_group_descr" HeaderText="รหัสความเทียบเท่า" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="compare_group_descr">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>

                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/TR_TrainingCurriculumsCompare.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>--%></asp:Panel>

        </td>
    </tr>
    </table>
    </div>
    </div>
</td>
</tr>
</table>
</asp:Panel>
        
</telerik:RadPageView>
</telerik:RadMultiPage>

	</div>
</form>
</body>
</html>
